package cn.formaggie.service.face;

import cn.formaggie.entity.model.order.OrderItem;
import org.aspectj.weaver.ast.Or;

import java.util.List;
import java.util.Map;

public interface OrderItemService {

    List<OrderItem> getAllOrderItems();

    OrderItem getOrderItemById(Integer id);

    List<OrderItem> getOrderItemsByOrderId(Integer orderId);

    List<OrderItem> findOrderItems(Map<String,Object> map);

    Integer getOrderItemsCount(Map<String,Object> map);

    Boolean addOrderItem(OrderItem orderItem);

    Boolean modifyOrderItemInfo(OrderItem orderItem);

    Boolean deleteOrderItem(Integer id);

    Boolean modifyState(OrderItem orderItem);
}
